package mapper;

import org.apache.ibatis.annotations.Param;
import entity.StorageRecord;

import java.util.List;

public interface StorageRecordMapper {

    //新增入库单
    public int add(StorageRecord storageRecord);

    //根据入库单id修改入库单
    public int update(StorageRecord storageRecord);

    //根据入库单id删除入库单
    public int delete(@Param("id") Integer id);

    /**
     * 分页查询用户信息
     */
    public List<StorageRecord> getPage(@Param("storageRecord") StorageRecord storageRecord,
                                 @Param("pageBegin") Integer pageBegin,
                                 @Param("pageSize") Integer pageSize);
    /**
     * 根据条件查询总数据量
     */
    public Integer count(@Param("storageRecord") StorageRecord storageRecord);


    /**
     * 通过id获取user
     * @param id
     * @return
     */
    public StorageRecord getById(@Param("id") Long id);

    public StorageRecord getSrCode(@Param("srCode") String srCode);
}
